<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%mobile_app_category}}".
 *
 * @property integer $id
 * @property integer $ad_network_id
 * @property integer $pid
 * @property string $market
 * @property string $market_id
 * @property string $category
 * @property string $name
 * @property string $last_update
 */
class MobileAppCategory extends \app\models\BaseAR
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%mobile_app_category}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['ad_network_id'], 'required'],
            [['ad_network_id', 'pid'], 'integer'],
            [['last_update'], 'safe'],
            [['market', 'market_id'], 'string', 'max' => 10],
            [['category', 'name'], 'string', 'max' => 64]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'ad_network_id' => 'Ad Network ID',
            'pid' => 'Pid',
            'market' => 'Market',
            'market_id' => 'Market ID',
            'category' => 'Category',
            'name' => 'Name',
            'last_update' => 'Last Update',
        ];
    }
}
